package com.shd.edanpei.base.network.api;


import com.shd.edanpei.base.StateBean;
import com.shd.edanpei.bean.ActivityBean;
import com.shd.edanpei.bean.OrderNumberList;
import com.shd.edanpei.bean.PointImage;
import com.shd.edanpei.bean.ProjectBean;
import com.shd.edanpei.bean.ProjectDataBean;
import com.shd.edanpei.bean.QrcodeBean;
import com.shd.edanpei.bean.QuitTeamBean;
import com.shd.edanpei.bean.ServerPhoneBean;
import com.shd.edanpei.bean.SuggestBean;
import com.shd.edanpei.bean.TakeOrderBean;
import com.shd.edanpei.bean.TeamModel;
import com.shd.edanpei.bean.TeamOrderModel;
import com.shd.edanpei.bean.UrlModel;
import com.shd.edanpei.bean.UserBean;
import com.shd.edanpei.base.network.model.NoDataResponse;
import com.shd.edanpei.base.network.rx.BaseResponse;
import com.shd.edanpei.bean.BannerBean;
import com.shd.edanpei.bean.CustomerBean;
import com.shd.edanpei.bean.IdentityBean;
import com.shd.edanpei.bean.ImgInfoBean;
import com.shd.edanpei.bean.LendingBean;
import com.shd.edanpei.bean.MeNeedModel;
import com.shd.edanpei.bean.MessageModel;
import com.shd.edanpei.bean.NoticeModel;
import com.shd.edanpei.bean.OnlinePayModel;
import com.shd.edanpei.bean.OrderDetailsModel;
import com.shd.edanpei.bean.OrderListModel;
import com.shd.edanpei.bean.PayModel;
import com.shd.edanpei.bean.PayServiceModel;
import com.shd.edanpei.bean.ProductBean;
import com.shd.edanpei.bean.ScoreModel;
import com.shd.edanpei.bean.UserModel;
import com.shd.edanpei.bean.VersionBean;
import com.shd.edanpei.bean.WithdrawModel;
import com.shd.edanpei.bean.PagingModel;
import com.shd.edanpei.util.contact.ContactBean;
import com.shd.edanpei.customer.bean.PayInfoModel;
import com.shd.edanpei.bean.OrderBean;
import com.shd.edanpei.bean.OrderDetailsBean;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface Api {

    //获取短信验证码
    @POST("user/sendSms.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> sendSms(@Field("mobile") String mobile,
                                                     @Field("type") int type,
                                                     @Field("imageCode") String code,
                                                     @Field("uuid") String uuid);

    //注册
    @POST("user/signup.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UserBean>> signup(@Field("mobile") String mobile,
                                              @Field("checkCode") String checkCode,
                                              @Field("password") String password,
                                              @Field("deviceId") String deviceId,
                                              @Field("signUpSource") String signUpSource);

    //登陆
    @POST("user/login.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UserBean>> login(@Field("mobile") String mobile,
                                             @Field("password") String password,
                                             @Field("loginType") int loginType,
                                             @Field("checkCode") String checkCode);

//    //登陆
//    @GET("test")
//    Observable<BaseResponse<UserBean>> test();
    //查询用户信息
    @POST("test/t4.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UserModel>> getUser(@Field("userId") int userId);


    @POST("user/getCompanyServerPhone.htm")
    Observable<BaseResponse<ServerPhoneBean>> getServerPhone();

    //通讯录列表
    @POST("friends/friendsList.htm")
    Observable<BaseResponse<List<ContactBean>>> friendsList();

    //新建通讯录好友
    @POST("friends/create.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> createFriend(@Field("picUrl") String picUrl,
                                                          @Field("name") String name,
                                                          @Field("sex") int sex,
                                                          @Field("mobile") String mobile);


    /*** 消息列表*/
    @POST("message/messageList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<MessageModel>>> messageList(@Field("pageNum") int pageNum,
                                                                    @Field("type") int type,
                                                                    @Field("roleType") int roleType);


    //通讯录详情
    @POST("friends/friendsDetail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<ContactBean>> friendDetails(@Field("friendsId") long friendsId);

    //上传图片
    @POST("common/alioss/userUpload.htm")
    @Multipart
    Observable<BaseResponse<String>> uploadPicture(@Part MultipartBody.Part file,
                                                   @Part("userId") RequestBody userId);

    //创建订单
    @POST("order/submitOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> createOrder(@FieldMap HashMap<String, Object> map);

    //订单列表
    @POST("order/orderList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<OrderBean>>> orderList(@Field("createUserId") String createUserId);

    //订单详情
    @POST("order/detail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<OrderDetailsBean>> orderDetail(@Field("orderId") int orderId);

    //意见反馈
    @POST("suggest/submit.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> suggest(@Field("content") String content);

    //修改用户信息
    @POST("user/update.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UserBean>> updateUserInfo(@FieldMap Map<String, Object> map);

    //获取二维码
    @POST("user/getQrcode.htm")
    @FormUrlEncoded
    Observable<BaseResponse<QrcodeBean>> getQrcode(@Field("userId") int userId);

    //修改手机号
    @POST("user/updateMobile.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updataMobile(@Field("mobile") String mobile,
                                                          @Field("checkCode") String Code
    );

    //重置登录密码
    @POST("user/resetPassword.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> resetLoginPwd(@FieldMap Map<String, Object> map);


    //提交客户信息
    @POST("order/submitCustomerInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<Integer>> submitCustomerInfo(@FieldMap Map<String, Object> map);

    //提交住房订单
    @POST("order/submitHouseOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<Integer>> submitHouseOrder(@FieldMap Map<String, Object> map);

    //提交住房订单
    @POST("order/submitCarOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<Integer>> submitCarOrder(@FieldMap Map<String, Object> map);

    /**
     * 提交房附件
     */
    @POST("order/submitHouseAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitHouseFile(@FieldMap Map<String, Object> map);

    /**
     * 提交车附件
     */
    @POST("order/submitCarAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitCarFile(@FieldMap Map<String, Object> map);

    /**
     * 提交企业税金附件
     */
    @POST("order/submitTaxrAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitTaxrAttachment(@FieldMap Map<String, Object> map);
    /**
     * 提交信贷附件
     */
    @POST("order/submitCreditAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitCreditAttachment(@FieldMap Map<String, Object> map);
    /**
     * 查询抢单列表
     */
    @POST("order/robOrderList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<OrderListModel>>> robOrderList(@Field("pageNum") int pageNum);

    /**
     * 中介查询抢单列表
     */
    @POST("order/findAllOrders.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<OrderListModel>>> findAllOrdres(@Field("pageNum") int pageNum);

    /**
     * 查询订单列表
     */
    @POST("order/orderList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<OrderListModel>>> orderList(@Field("pageType") int pageType,
                                                                    @Field("orderStatus") int orderStatus,
                                                                    @Field("pageNum") int pageNum);

    /**
     * 订单详情
     */
    @POST("order/detail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<OrderDetailsModel>> orderDetails(@Field("orderId") int orderId);

    /*** 抢单*/
    @POST("order/robOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<TakeOrderBean>> takeOrder(@Field("orderId") int orderId,
                                                      @Field("receiptCode") String receiptCode);


    /**
     * 新增车辆产品
     */
    @POST("product/applyCart.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> carProduct(@FieldMap Map<String, Object> map);


    /**
     * /**
     * 新增住房产品
     */
    @POST("product/applyRoom.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> houseProduct(@FieldMap Map<String, Object> map);

    /**
     * 产品列表
     */
    @POST("product/list.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<ProductBean>>> productList(@Field("isUp") int isUp,
                                                                   @Field("pageNum") int pageNum);

    /**
     * 产品详情
     */
    @POST("product/info.htm")
    @FormUrlEncoded
    Observable<BaseResponse<ProductBean>> productDetils(@Field("id") String id);

    /**
     * 上下架产品
     */
    @POST("product/setIsUp.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> upProduct(@FieldMap Map<String, Object> map);

    /**
     * C端用户列表
     */
    @POST("order/searchOrders.htm")
    @FormUrlEncoded
    Observable<BaseResponse<List<OrderListModel>>> searchOrder(@Field("orderNo") String orderNo,
                                                               @Field("isSearch") boolean isSearch);

    /**
     * C端用户列表
     */
    @POST("order/searchOrders.htm")
    @FormUrlEncoded
    Observable<BaseResponse<List<OrderListModel>>> searchOrder(@Field("isSearch") boolean isSearch);


    /**
     * 获取支付详情
     */
    @POST("order/getPayInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PayInfoModel>> getPayDetails(@Field("orderId") int orderId);

    /*** 实名认证*/
    @POST("user/realName.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UserBean>> identity(@Field("realName") String realName,
                                                @Field("idNumber") String idNumber,
                                                @Field("idCardPic") String picJson);

    /*** 上传图片申请用户图片*/
    @POST("common/alioss/userUpload.htm")
    @Multipart
    Observable<BaseResponse<String>> uploadFile(@Part MultipartBody.Part file,
                                                @Part("userId") RequestBody userId,
                                                @Part("describe") RequestBody describe);

    /*** 实名认证上传图片*/
    @POST("common/alioss/userUpload.htm")
    @Multipart
    Observable<BaseResponse<IdentityBean>> uploadIdentityPic(@Part MultipartBody.Part file,
                                                             @Part("userId") RequestBody userId,
                                                             @Part("describe") RequestBody describe,
                                                             @Part("needOcr") int needOcr);

    /**
     * 完善资料
     */
    @POST("user/perfectInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> perfectInfo(@FieldMap Map<String, Object> map);

    /*** 银行经理提供初审*/
    @POST("order/firstAudit.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> firstApproveOrder(@FieldMap Map<String, Object> map);

    /*** 银行经理提供终审核*/
    @POST("order/lastAudit.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> endApproveOrder(@FieldMap Map<String, Object> map);

    /*** 支付押金*/
    @POST("order/payDeposit.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PayModel>> payDeposit(@FieldMap Map<String, Object> map);

    /*** 支付服务费*/
    @POST("order/payService.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PayModel>> payService(@FieldMap Map<String, Object> map);

    /**
     * 查询支付信息
     */
    @POST("order/getOnlinePayData.htm")
    @FormUrlEncoded
    Observable<BaseResponse<OnlinePayModel>> getOnlinePayData(@Field("orderId") int orderId);

    /**
     * 获取服务费支付数据
     */
    @POST("order/getPayServiceInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PayServiceModel>> getPayServiceInfo(@Field("orderId") int orderId);


    /*** 查询放款信息*/
    @POST("order/getLendingInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<LendingBean>> getLendingInfo(@Field("orderId") int orderId);

    /*** 提交收款信息*/
    @POST("order/submitLendingInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitLendingInfo(@FieldMap Map<String, Object> map);

    /**
     * 提交支付服务费凭证
     */
    @POST("order/submitServiceChargeCert.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> submitServiceChargeCert(@Field("orderId") int orderId,
                                                                     @Field("serviceChargeCert") String serviceChargeCert);

    /*** 银行经理确认放款*/
    @POST("order/passLoan.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> sureOrder(@Field("orderId") int orderId,
                                                       @Field("orderType") int orderType);


    /*** 用户取消订单*/
    @POST("order/cancel.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> cancelOrder(@Field("orderId") int orderId,
                                                         @Field("orderType") int orderType,
                                                         @Field("cancelReason") String cancelReason);

    /*** 银行经理拒绝订单*/
    @POST("order/refuse.htm")

    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> refuseOrder(@Field("orderId") int orderId,
                                                         @Field("orderType") int orderType,
                                                         @Field("refuseReason") String refuseReason);


    /*** 删除订单*/
    @POST("order/userDel.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> userDelete(@Field("orderId") int orderId,
                                                        @Field("orderType") int orderType);

    /*** 银行经理删除订单*/
    @POST("order/managerDel.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> deleteOrder(@Field("orderId") int orderId,
                                                         @Field("orderType") int orderType);

    /*** 资讯列表*/
    @POST("article/articleList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<MessageModel>>> articleList(@Field("pageNum") int pageNum,
                                                                    @Field("userId") int userId,
                                                                    @Field("content") String content);


    /*** 我的积分*/
    @POST("userAccount/myIntegral.htm")
    Observable<BaseResponse<ScoreModel>> integeral();


    /*** 积分收支明细*/
    @POST("userAccount/withdrawList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<ScoreModel>>> accountList(@Field("way") String way,
                                                                  @Field("pageNum") int pageNum);


    /*** 提现*/
    @POST("userAccount/withdrawMoney.htm")
    @FormUrlEncoded
    Observable<BaseResponse<WithdrawModel>> withdraw(@FieldMap Map<String, Object> map);


    /*** 用户确认收款*/
    @POST("order/firmLoan.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> sureGetLoan(@Field("orderId") int orderId,
                                                         @Field("orderType") int orderType);

    //更新申请区域
    @POST("order/updateArea.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateLocation(@Field("orderId") int orderId,
                                                            @Field("area") String area);

    //查询客户信息
    @POST("order/getCustomerInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<CustomerBean>> getCustomerInfo(@Field("orderId") int orderId);

    //更新客户信息
    @POST("order/updateCustomerInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateCustomerInfo(@FieldMap Map<String, Object> map);

    //获取订单附件详情
    @POST("order/getAttachmentInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<ImgInfoBean>> getFileData(@Field("orderId") int orderId);

    //更新房贷附件
    @POST("order/updateHouseAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateHouseFile(@FieldMap Map<String, Object> map);

    //更新车贷附件
    @POST("order/updateCarAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateCarFile(@FieldMap Map<String, Object> map);

    //更新信用贷附件
    @POST("order/updateCreditAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateCreditAttachment(@FieldMap Map<String, Object> map);

    //更新企业税金附件
    @POST("order/updateTaxrAttachment.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateTaxrAttachment(@FieldMap Map<String, Object> map);


    //更新房贷订单
    @POST("order/updateHouseOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updataHouseData(@FieldMap Map<String, Object> map);

    //更新车贷订单
    @POST("order/updateCarOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updataCarData(@FieldMap Map<String, Object> map);

    //查询订单详情
    @POST("order/getOrderInfo.htm")
    @FormUrlEncoded
    Observable<BaseResponse<CustomerBean>> getOrderInfo(@Field("orderId") int orderId);

    //订单确认修改
    @POST("order/confirmUpdate.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> comfirmUpdate(@Field("orderId") int orderId);


    /*** Banner*/
    @POST("banner/bannerList.htm")
    Observable<BaseResponse<List<BannerBean>>> getBanner();

    /**
     * 通知
     */
    @POST("messageBanner/messagePushList.htm")
    Observable<BaseResponse<PagingModel<NoticeModel>>> getNotice();

    /**
     * 删除产品
     */
    @POST("product/delete.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> deleteProduct(@Field("id") String id);


    /**
     * 新增我的需求
     */
    @POST("requirement/create.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> createNeed(@Field("industrySelect") String industrySelect,
                                                        @Field("needProduct") String needProduct,
                                                        @Field("remark") String remark,
                                                        @Field("createUserId") int createUserId);

    /**
     * 我的需求列表
     */
    @POST("requirement/list.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<MeNeedModel>>> needList(@Field("pageNum") int pageNum,
                                                                @Field("createUserId") int createUserId);

    /**
     * 删除我的需求
     */
    @POST("requirement/delete.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> deleteNeed(@Field("requirementId") int requirementId);

    /**
     * 我的需求详情
     */
    @POST("requirement/detail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<MeNeedModel>> needDetails(@Field("requirementId") int requirementId);

    /**
     * 选择角色
     */
    @POST("user/selectRole.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> selectRole(@Field("roleType") int roleType);

    /**
     * 重新审核
     */
    @POST("user/reCheck.htm")
    Observable<BaseResponse<NoDataResponse>> reapply();

    /*** 获取Url*/
    @POST("urlManagement/findBySearch.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UrlModel>> getUrl(@Field("type") int type);

    /*** 获取用户协议Url*/
    @POST("urlManagement/loadingUserAgreement.htm")
    @FormUrlEncoded
    Observable<BaseResponse<UrlModel>> getLoadingUserAgreement(@Field("") String type);

    /**
     * 确认授权
     */
    @POST("order/confirmAuthoriz.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> confirmAuthoriz(@Field("orderId") int orderId);

    /**
     * 查询审核状态
     */
    @POST("user/getUserStatus.htm")
    Observable<BaseResponse<StateBean>> getUserStatus();

    /*** 重新申请订单*/
    @POST("order/again.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> againApply(@Field("orderId") int orderId,
                                                        @Field("orderType") int orderType);


    /**
     * 是否有未读消息
     */
    @POST("message/isNewMessageNotRead.htm")
    Observable<BaseResponse<StateBean>> notRead();

    /**
     * 消息未读数
     */
    @POST("message/countNotReadNum.htm")
    Observable<BaseResponse<StateBean>> notReadCount();


    /*** 消息详情*/
    @POST("message/messageDetail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<MessageModel>> messageDetails(@Field("id") int id);

    /**
     * 批量导入通讯录
     */
    @POST("friends/createList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> uploadContacts(@Field("friendsList") String contacts);

    /**
     * 我的团队
     */
    @POST("myTeam/myTeam.htm")
    Observable<BaseResponse<TeamModel>> queryMyTeam();

    /**
     * 加入团队
     */
    @POST("myTeam/joinTeam.htm")
    @FormUrlEncoded
    Observable<BaseResponse<TeamModel>> joinTeam(@Field("teamCode") String teamCode);

    /**
     * 退出团队
     */
    @POST("myTeam/quitTeam.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> exitTeam(@Field("currentState") int currentState);

    /**
     * 团队列表
     */
    @POST("myTeam/teamList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<TeamModel>>> teamList(@Field("pageNum") int pageNum,
                                                              @Field("teamId") int teamId,
                                                              @Field("userName") String userName);

    /**
     * 业务列表
     */
    @POST("myTeam/orderList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<TeamOrderModel>>> teamOrderList(@Field("pageNum") int pageNum,
                                                                        @Field("teamId") int teamId,
                                                                        @Field("userName") String userName);

    /**
     * 业务员详情
     */
    @POST("myTeam/anencyDetail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<TeamModel>> anencyDetail(@Field("userId") int userId,
                                                     @Field("teamId") int teamId);

    /**
     * 业务员详情列表
     */
    @POST("myTeam/anencyDetailList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<TeamOrderModel>>> anencyDetailList(@Field("pageNum") int pageNum,
                                                                           @Field("userId") int userId,
                                                                           @Field("teamId") int teamId);

    /**
     * 上传团队logo
     */
    @POST("myTeam/updateTeamPic.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateTeamLogo(@Field("teamPic") String teamPic,
                                                            @Field("teamId") int teamId);

    /**
     * 检查更新
     */
    @POST("appVersionMgn/appVersion.htm")
    @FormUrlEncoded
    Observable<BaseResponse<VersionBean>> appVersion(@Field("deviceType") String deviceType);

    /**
     * 首页活动
     */
    @POST("activity/activityList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<List<ActivityBean>>> activityList(@Field("roleType") int roleType);

    /**
     * 广告页
     */
    @POST("setting/getGuidePic")
    Observable<BaseResponse<String>> getGuidePic();

    /**
     * C端用户订单列表
     */
    @POST("order/customerOrderList.htm")
    Observable<BaseResponse<OrderNumberList>> COrderList();


    /**
     * 退团申请列表
     */
    @POST("myTeam/applyQuitList.htm")
    @FormUrlEncoded
    Observable<BaseResponse<PagingModel<QuitTeamBean>>> quitList(@Field("teamId") int teamId,
                                                                 @Field("pageNum") int pageNum);

    /**
     * 同意退出团队
     */
    @POST("myTeam/agreeQuit.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> argeeQuit(@Field("teamId") int teamId);

    /**
     * 反馈记录
     */
    @POST("suggest/suggestList.htm")
    Observable<BaseResponse<PagingModel<SuggestBean>>> suggestList();


    /**
     * 查询积分页面活动引导图
     */
    @POST("setting/getPointsGuidePic")
    Observable<BaseResponse<PointImage>> pointsImage();


    //查询系统参数
    @POST("setting/getSysParam.htm")
    @FormUrlEncoded
    Observable<BaseResponse<ProjectDataBean>> getProject(@Field("name") String name);

    //查询咨询详情
    @POST("article/articleDetail.htm")
    @FormUrlEncoded
    Observable<BaseResponse<MessageModel>>
    getMessage(@Field("id") String id,
               @Field("userId") String userId);

    //用户二维码
    @POST("share/reg")
    Observable<BaseResponse<ProjectDataBean>>
    getReg();

    //t提交个人信用贷
    @POST("order/submitCreditOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<IdentityBean>> submitMeCredit(@FieldMap Map<String, Object> map);
    //修改个人信用贷
    @POST("order/updateCreditOrder.htm.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updataMeCredit(@FieldMap Map<String, Object> map);

    //t提交企业税金
    @POST("order/submitTaxOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<IdentityBean>> submitTaxOrder(@FieldMap Map<String, Object> map);

    //修改企业税金
    @POST("order/updateTaxOrder.htm")
    @FormUrlEncoded
    Observable<BaseResponse<NoDataResponse>> updateTaxOrder(@FieldMap Map<String, Object> map);
}




